package ltd.hxya.novel.book.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import ltd.hxya.novel.book.entity.BookCategory;
import ltd.hxya.novel.book.vo.BookCategoryVo;
import ltd.hxya.novel.entity.rowdata.DataPart;

import java.util.List;

/**
 * <p>
 * 小说类别表 服务类
 * </p>
 *
 * @author hxya
 * @since 2022-09-13
 */
public interface IBookCategoryService extends IService<BookCategory> {

    List<BookCategoryVo> listCategory(Integer categoryCondition, Boolean workDirection);

    void insertCategory(BookCategory bookCategory);

    Page<BookCategory> listBookCategory(BookCategory bookCategory);

    void addCategory(BookCategory bookCategory);

    void updateCategory(BookCategory bookCategory);

    void deleteBatchCategory(String[] ids);

    List<BookCategory> selectList(QueryWrapper<BookCategory> queryWrapper);

    BookCategory saveCategory(DataPart dataPart);
}
